package com.colin.aiyi.ui;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import com.colin.aiyi.R;
import com.colin.aiyi.ui.Home.MainActivity;

/**
 * Created by hl on 2017/5/19.
 */
@Deprecated
public class WelcomeAc extends BaseActivity implements View.OnClickListener{
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.ac_welcome);
    }


    @Override
    public void onClick(View v) {
        super.onClick(v);
        Intent intent=null;
        switch (v.getId())
        {
            case R.id.button_register:
              intent=new Intent(this,RegisterAc.class);
                break;
            case R.id.button_login:
                intent=new Intent(this,MainActivity.class);
                break;
        }
        startActivity(intent);
        finish();
    }
}
